package com.blog.personalblog;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
//@RestController
@MapperScan("com.blog.personalblog.mapper")
public class PersonalBlogApplication {

	public static void main(String[] args) {
		SpringApplication.run(PersonalBlogApplication.class, args);
	}
	private static final Logger LOG = LogManager.getLogger(PersonalBlogApplication.class);

//	@GetMapping("/test")
//	public String test() {
//		LOG.debug("debug 级别日志 ...");
//		LOG.info("info 级别日志 ...");
//		LOG.warn("warn 级别日志 ...");
//		LOG.error("error 级别日志 ...");
//		LOG.fatal("fatal 级别日志 ...");
//		return "Hello Log4j2 !";
//	}



}
